package com.seawaterbt.ssm.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seawaterbt.ssm.config.DataSource;
import com.seawaterbt.ssm.config.DataSourceEnum;
import com.seawaterbt.ssm.entity.GatherTemporary;
import com.seawaterbt.ssm.mapper.GatherTemporaryMapper;
import com.seawaterbt.ssm.service.IGatherTemporaryService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ycc
 * @since 2019-11-04
 */
@Service
public class GatherTemporaryServiceImpl extends ServiceImpl<GatherTemporaryMapper, GatherTemporary> implements IGatherTemporaryService {

    @DataSource(DataSourceEnum.DB2)
    @Override
    public GatherTemporary getOne(Wrapper<GatherTemporary> queryWrapper) {
        return super.getOne(queryWrapper);
    }

    @DataSource(DataSourceEnum.DB2)
    @Override
    public boolean saveOrUpdate(GatherTemporary entity) {
        return super.saveOrUpdate(entity);
    }
}
